package com.eastfair.venueservice.vo;

import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.venueservice.enumeration.WorkOvertimeRuleOvertimeTypeEnum;
import com.eastfair.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

/**
 * <p>
 * 实体类
 * 加班规则
 * </p>
 *
 * @author dqq
 * @since 2023-05-05
 */
@Data
@ApiModel(value = "WorkOvertimeRuleVO", description = "加班规则")
public class WorkOvertimeRuleVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 加班类型 #{SPACE_OVERTIME:整馆加班;SITE_OVERTIME:展位加班}
     */
    @ApiModelProperty(value = "加班类型 #{SPACE_OVERTIME:整馆加班;SITE_OVERTIME:展位加班}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private WorkOvertimeRuleOvertimeTypeEnum overtimeType;
    /**
     * 计时单价
     */
    @ApiModelProperty(value = "计时单价")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer timeUnit;
    /**
     * 申报时段1开始时间
     */
    @ApiModelProperty(value = "申报时段1开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalTime submitPeriodOneBegin;
    /**
     * 申报时段1结束时间
     */
    @ApiModelProperty(value = "申报时段1结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalTime submitPeriodOneEnd;
    /**
     * 申报时段2开始时间
     */
    @ApiModelProperty(value = "申报时段2开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalTime submitPeriodTwoBegin;
    /**
     * 申报时段2结束时间
     */
    @ApiModelProperty(value = "申报时段2结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalTime submitPeriodTwoEnd;
    /**
     * 申报截止时间
     */
    @ApiModelProperty(value = "申报截止时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime submitDeadline;
    /**
     * 加收费率
     */
    @ApiModelProperty(value = "加收费率")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal surchargeRate;
    /**
     * 起订平米
     */
    @ApiModelProperty(value = "起订平米")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal minArea;
    /**
     * 所属系统
     */
    @ApiModelProperty(value = "所属系统")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 64, message = "所属系统长度不能超过64")
    private String belongSystem;
    /**
     * 主场ID
     */
    @ApiModelProperty(value = "主场ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long homeId;
    /**
     * 主场名称
     */
    @ApiModelProperty(value = "主场名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 64, message = "主场名称长度不能超过64")
    private String homeName;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long exhibitionManageId;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 200, message = "展会名称长度不能超过200")
    private String exhibitionManageName;
    /**
     * 最后修改时间
     */
    @ApiModelProperty("最后修改时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
     * 加班规格列表
     */
    @ApiModelProperty("加班规格列表")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<WorkOvertimeSpecVO> workOvertimeSpecList;
}
